package com.itheima.lambda1;

public class Test {

    public static void main(String[] args) {
        new Animal(){
            @Override
            void sing() {

            }
        }.sing();

        ((Inter) () -> {

        }).sing();

        new Inter2(){
            @Override
            public void sing() {

            }

            @Override
            public void dance() {

            }
        }.sing();
        new Inter3(){}.toString();
    }
}

abstract class  Animal{
    abstract  void sing();
}
interface  Inter{
    void sing();
}
interface  Inter2{
    void sing();
    void dance();
}
interface Inter3{

}